package cn.caojun.auth.service.Impl;

import cn.caojun.auth.domain.Menu;
import cn.caojun.auth.mapper.MenuMapper;
import cn.caojun.auth.query.MenuQuery;
import cn.caojun.auth.service.IMenuService;
import cn.caojun.basic.service.impl.BaseServiceImpl;
import cn.caojun.basic.utils.PageList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl extends BaseServiceImpl<Menu> implements IMenuService {

    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> getMenuTree() {
        return menuMapper.getTree();
    }

    @Override
    public List<Menu> getTree(Long loginUserId) {
        return menuMapper.getMenuTree(loginUserId);
    }


}
